TablesGetNumberRows Function

public function TablesGetNumberRows(tables, id) result(rows)

return the number of rows of a table in a table collection

Arguments

Type IntentOptional Attributes Name
type(TableCollection), intent(in) :: tables
character(len=*), intent(in) :: id

Return Value integer


Source Code

FUNCTION TablesGetNumberRows &
!
( tables, id ) &
!
RESULT (rows)

IMPLICIT NONE

!arguments with intent (in):
TYPE (TableCollection), INTENT (IN) :: tables
CHARACTER (LEN = *),  INTENT (IN) :: id

!local dclarations:
INTEGER :: rows
!--------------------------------end of declarations---------------------------

rows = tables % elem ( TableSyncById (tables, id) ) % noRows 

END FUNCTION TablesGetNumberRows